﻿@model ElCharro01.Models.Variant
@using ElCharro01.Models
@{
    ViewBag.Title = "DeleteImage";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}
<div id="category-content">
    <div class="category-wrap ">
        <div class="category products">
            <h2 class="centered">
                Cancella un'immagine</h2>
            <ul class="ulTabellizzato">
                @foreach (ElCharro01.Models.Image image in Model.Image.ToList())
                {
                    <li class="product-wrap">
                        <div class="product">
                            <div class="image-wrap">
                                <img height="200" width="180" alt="@image.Path" src="/Content/Images/Raw/@image.Path"  />
                            </div>
                            <span><a href="@Url.Action("DeleteImage", "Variant", new { VariantId = Model.ID, ImageId = image.ID })">
                                <img alt="Cancella Immagine" src="/Content/Images/Icons/delete.png" />
                            </a></span>
                        </div>
                    </li>
                }
            </ul>
        </div>
    </div>
</div>
<div class="centralo">
    @Html.ActionLink("Torna Indietro", "ImageManagment", "Variant", new { VariantId = Model.ID }, new { })
</div>
